<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%attend_class}}".
 *
 * @property integer $id
 * @property integer $order_sales_id
 * @property integer $category_id
 * @property integer $site_id
 * @property integer $start_time
 * @property integer $created_at
 * @property integer $class_student_id
 */
class AttendClass extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%attend_class}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['order_sales_id', 'category_id', 'site_id', 'start_time', 'created_at', 'class_student_id'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', '自动编号'),
            'order_sales_id' => Yii::t('common', '订单课程id'),
            'category_id' => Yii::t('common', '课程分类id'),
            'site_id' => Yii::t('common', '分店id'),
            'start_time' => Yii::t('common', '上课时间'),
            'created_at' => Yii::t('common', '统计时间'),
            'class_student_id' => Yii::t('common', '课程id'),
        ];
    }
}
